package com.uriuniv.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.springframework.validation.BindException;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.SimpleFormController;

import com.uriuniv.command.ArticleCommand;
import com.uriuniv.command.LoginCommand;
import com.uriuniv.domain.Student;
import com.uriuniv.service.StudentS;

public class ArticleWriteC extends SimpleFormController {

	@Override
	protected ModelAndView onSubmit(HttpServletRequest request,
			HttpServletResponse response, Object command, BindException errors)
			throws Exception {
		
		ArticleCommand articleCommand = (ArticleCommand)command;
		System.out.println(articleCommand.getArticleMenu());
		System.out.println(articleCommand.getTitle());
		System.out.println(articleCommand.getContent());
		
		return super.onSubmit(request, response, command, errors);
	}
	
}
